package com.gs.cd.service.resource.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gs.cd.model.resource.SysResourceGroupOwnResource;

import java.util.Collection;
import java.util.List;
import java.util.Set;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author seven
 * @since 2020-12-22
 */
public interface SysResourceGroupOwnResourceService extends IService<SysResourceGroupOwnResource> {

    /**
     * 通过groupCode 获取
     * @param resourceGroupCode
     * @return
     */
    List<SysResourceGroupOwnResource> listByResourceGroupCode(String saleCode,String resourceGroupCode);

    /**
     * 通过资源组Codes 获取
     * @param resourceGroupCodes
     * @return
     */
    List<SysResourceGroupOwnResource> listByResourceGroupCodes(String saleCode,Collection<String> resourceGroupCodes);

    /**
     * 通过资源组Codes 删除
     * @param resourceGroupCodes
     * @return
     */
    boolean removeByResourceGroupCodes(String saleCode,Set<String> resourceGroupCodes);
}
